<template>
  <div @click="fn2">
    <!-- 事件修饰符 -->
    <a @click.prevent="fn" href="http://www.baidu.com">百度</a>
  </div>
</template>

<script>
export default {
  methods: {
    fn() {
      console.log(123);
    },
    fn2() {
      console.log(999);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>